package com.sjb.sixteen_journey_backend.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import java.io.Serializable;

import com.fasterxml.jackson.annotation.JsonIgnore;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 路线表
 * </p>
 *
 * @author jcz
 * @since 2024-07-26
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("map_route")
public class MapRoute implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 路线id
     */
    @TableId(value = "map_route_id", type = IdType.AUTO)
    private Integer mapRouteId;

    /**
     * 用户id
     */
    @TableField("user_id")
    private Integer userId;

    /**
     * 地图id
     */
    @TableField("my_map_id")
    private Integer myMapId;

    /**
     * 地点id合集
     */
    @TableField("site_id_list")
    @JsonIgnore
    private String siteIdList;

    @TableField(exist = false)
    private double[][] route;

}
